package com.hagos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import java.util.Date;

public class NowToo extends Activity implements View.OnClickListener {


    Button btn;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

	btn = (Button)findViewById(R.id.btn);
	btn.setOnClickListener(this);
	updateTime();

    }

    public void onClick(View view){
	updateTime();
    }

    private void updateTime(){
	btn.setText(new Date().toString());
    }
}
